var ngRoute = require("angular-ui-router");
angular
    .module("work_page_route", [
        "ui.router"
    ])
    .config([
        "$urlRouterProvider",
        "$stateProvider",
        "$locationProvider",
        ($urlRouterProvider, $stateProvider, $locationProvider) => {
            $urlRouterProvider.when("", "/home");
            $stateProvider
                .state("home", {
                    url: "/home",
                    templateUrl: "../html/home/home.html",
                    controller: "homeCtrl",
                    controllerAs: "home"
                })
                .state("new_job", {
                    url: "/new_job",
                    templateUrl: "../html/newWork/newWork.html",
                    controller: "newWorkCtrl",
                    controllerAs: "newWork"
                })
                .state("all_job", {
                    url: "/all_job",
                    templateUrl: "../html/allWork/allWork.html",
                    controller: "allWorkCtrl",
                    controllerAs: "allWork"
                })
                .state("about", {
                    url: "/about",
                    templateUrl: "../html/about/about.html",
                    controller: "aboutCtrl",
                    controllerAs: "about"
                });
        }
    ]);